package com.edu.cqr.web.demo.mapper;

import com.edu.cqr.web.demo.model.UserInfo;
import org.apache.catalina.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserInfoMapper {
    int insert(UserInfo record);

    UserInfo findFirstByUserName(@Param("userName") String userName);

    void delUserInfoByUserId(@Param("userId") Integer userId);

    int updatePasswordByUserName(@Param("updatePassword") String updatePassword, @Param("userName") String userName);

    int updateStateByUserName(@Param("userName") String userName, @Param("updateState") int updateState);

    int enbupdateStateByUserName(@Param("userName") String userName, @Param("updateState") int updateState);

    List<UserInfo> findUserInfoAll();
}
